package org.example.jwtdemo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.jwtdemo.entity.User;

@Mapper
public interface UserMapper {

    User login(User user);

    @Select("select * from user where id = #{id}")
    User getUserById(Long id);
}
